﻿

@{
    ViewBag.Title = "Form";
    Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
    var moduleId = $.request("moduleid");
    var ParentUrl = $.request("ParentUrl");
    var keyValue = $.request("keyValue");
    $(function () {
        if (!!keyValue) {
            $.ajax({
                url: "/SystemManage/SysModuleAuthorize/GetFormJson",
                data: { keyValue: keyValue },
                dataType: "json",
                async: false,
                success: function (data) {
                    $("#form1").formSerialize(data);
                }
            });
        }
    });
    function submitForm() {
        if (!$('#form1').formValid()) {
            return false;
        }
        var postData = $("#form1").formSerialize();
        postData["ModuleId"] = moduleId; 

        $.submitForm({
            url: "/SystemManage/SysModuleAuthorize/FastSubmit" + "?keyValue=" + keyValue,
            //  param: $("#form1").formSerialize(),
            param: postData,
            success: function () {
                if (ParentUrl === "") {
                    $.currentWindow().$("#gridList").trigger("reloadGrid");
                } else {
                    top.frames[ParentUrl].$("#gridList").trigger("reloadGrid");
                }
            }
        });
        return false;
    }
</script>

<form id="form1">
    <div style="padding-top: 20px; margin-right: 20px;" class="container">
        <div class="form">
            <div class="input-group">
                <span class="input-group-addon">权限名字</span>
                <div class="Value">
                    <input id="FullName" name="FullName" type="text" class="form-control required" placeholder="" />
                </div>
            </div>
            <br />

            <div class="input-group">
                <span class="input-group-addon">权限地址</span>
                <div class="Value">
                    <input id="Address" name="Address" type="text" class="form-control required" placeholder="" />
                </div>
            </div>



        </div>
    </div>
</form>







